package com.matt.sooncleaner.arch

import android.Manifest
import android.os.Build

fun getScanPermission() = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
    arrayOf(Manifest.permission.MANAGE_EXTERNAL_STORAGE, Manifest.permission.ACCESS_FINE_LOCATION)
} else {
    arrayOf(
        Manifest.permission.WRITE_EXTERNAL_STORAGE,
        Manifest.permission.READ_EXTERNAL_STORAGE,
        Manifest.permission.ACCESS_FINE_LOCATION
    )
}